package org.csmzxy.class2333;

import java.util.LinkedList;

public class Example02 {
    public static void main(String[] args){
        LinkedList list = new LinkedList();
        list.add("Tuesday");
        list.add("Wednesday");
        list.add("Friday");
        list.add("Saturdau");
        System.out.println("list");
        list.addFirst("Monday");
        System.out.println(list);
        list.addLast("Sunday");
        System.out.println(list);
        System.out.println(list.getFirst());
        System.out.println(list.getLast());
        System.out.println(list.removeFirst());
        System.out.println(list);
        list.clear();
        System.out.println(list.isEmpty());
    }
}
